int a = 1;
float b = 0.34;
String name = "haha";
Boolean isVariation = true;

void setup() {
  
    size( 800 , 800, P3D );//size(width,height)
    frameRate(60);
}

void draw (){
  background(255);
  fill(255,0,0);
  line(0,20,100,10);//line(x,y,x,y)
  rect(30,40,60,100);//rect(x,y,width,height)
  fill(255,215,0,100);
  ellipse(pmouseX,pmouseY,100,100);//(x,y,width,height)
  
  if ( a == 0 ){
    isVariation = true;
  }else if (a == 600){
    isVariation = false;
  }
  
  if (isVariation == true) {
    a++;//a = a + 1
  }else if(isVariation == false ){
    a--;
  }
  
  
  
   println(a);
}

void mouseMoved(){
  
}